//
//  DGGMobileLoginConfig.m
//  DGGMobileLoginSDK
//
//  Created by dgg_hzk on 2019/12/27.
//

#import "DGGMobileLoginConfig.h"
#import "DGGMobileLoginSDKPrefixHeader.h"

@implementation DGGMobileLoginConfig

+ (instancetype)sharedInstance{
    static DGGMobileLoginConfig *_mobileConfigInstance;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _mobileConfigInstance = [[DGGMobileLoginConfig alloc] init];
    });
    return _mobileConfigInstance;
}

- (instancetype)init{
    self = [super init];
    if(self){
        self.navTitle = @"登录顶呱呱";
        self.navTextColor = [UIColor colorWithRed:51/255.0f green:51/255.0f blue:51/255.0f alpha:1.0];
        if (@available(iOS 8.2, *)) {
            self.navTextFont = [UIFont systemFontOfSize:17.0f weight:UIFontWeightRegular];
        } else {
            self.navTextFont = [UIFont systemFontOfSize:17.0f];
            // Fallback on earlier versions
        }
        self.navColor = [UIColor colorWithRed:18/255.0 green:187/255.0 blue:184/255.0 alpha:1.0];
        self.navTextColor = [UIColor whiteColor];
        self.navTextFont = [UIFont systemFontOfSize:18.0f];
        self.navBackImage = [UIImage imageNamed:kMobileLoginSource(@"mobileLogin_close_white1.png")];
        self.pageThemeColor = [UIColor colorWithRed:18/255.0 green:187/255.0 blue:184/255.0 alpha:0.4];
        
        ///协议
        self.appPrivacyColor = self.navColor;
        self.appPrivacyContentColor = [UIColor colorWithRed:51/255.0f green:51/255.0f blue:51/255.0f alpha:0.8];
        self.appPrivacyPrefix = @"登录本界面并同意授权";
        self.appPrivacySuffix = @"所提供服务";
        
        ///切换登录方式
        self.switchBtnTextColor = [UIColor colorWithRed:18/255.0 green:187/255.0 blue:184/255.0 alpha:1.0];
        self.switchBtnTextAlign = NSTextAlignmentCenter;
        self.switchBtnFont = [UIFont systemFontOfSize:15.0];
        self.swithAccOffsetY = 280;
        self.swithAccOffsetX = 0;
        self.switchBtnText = @"其他方式登录";
        
        ///logo
        self.appLogoImage = [UIImage imageNamed:@"Login_icon_logo.png"];
        self.appLogoWidth = 80;
        self.appLogoOffsetY = 70;
        
        ///登录按钮
        self.loginButtonText = @"本机号码一键登录";
        self.loginButtonBgColor = self.navColor;
        self.loginButtonTextColor = [UIColor whiteColor];
        self.loginButtonTextFont = [UIFont systemFontOfSize:16];
        self.loginButtonOffsetY = 222;
        self.loginButtonHeight = 38;
        
        ///电话号码
        self.numberOffsetY = 160;
        self.numberHeight = 30;
        self.numberFont = [UIFont boldSystemFontOfSize:22];
        
        ///品牌运营商
        self.brandFont = [UIFont systemFontOfSize:12];
        self.brandOffsetY = 196;
        self.brandHeight = 20;
        self.brandColor = [UIColor grayColor];
        
        ///复选框
        self.uncheckedImg = [UIImage imageNamed:@""];
        self.checkedImg = [UIImage imageNamed:@""];
        self.checkboxWH = 18;
        self.privacyState = YES;
        self.checkedHidden = NO;
    }
    return self;
}

@end

@implementation DGGAgreementListModel

@end
